"""Remote configuration and static download route."""
from fastapi import APIRouter
from fastapi.responses import FileResponse

router = APIRouter(tags=["Config"])

CONFIG_PATH = "appconfig.json"

@router.get("/config/app", response_class=FileResponse)
async def get_config():
    """Return the JSON config for clients."""
    return FileResponse(CONFIG_PATH, media_type="application/json")
